package com.travel.api.service

import com.travel.api.utils.CommonUtil

open class BaseService {

    fun success(): Map<String, Any> = CommonUtil.getSuccessResult()
    fun success(message: String?, data: Any?): Map<String, Any> = CommonUtil.getSuccessResult(message, data)

    fun fail(message: String?): Map<String, Any> = CommonUtil.getFailResult(message)
    fun fail(code: Int, message: String?): Map<String, Any> = CommonUtil.getFailResult(code, message)
}